{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>求助</h5>
                </div>
                <div class="ibox-content layui-form">
                    <div class="layui-row layui-col-space10 layui-form-item ">

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">求助人：</label>
                            <div class="layui-input-block">
                                <input type="text"value="{$res.user_username}" name="banner_title" lay-verify="required" placeholder="标题" class="layui-input ">
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">求助学科：</label>
                            <div class="layui-input-block">
                                <input type="text"value="{$res.subject_name}" name="banner_title" lay-verify="required" placeholder="标题" class="layui-input ">
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">求助内容：</label>
                            <div class="layui-input-block">
                                <textarea style="width:580px;height:170px">{$res.course_content}</textarea>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">求助图片：</label>
                            <div class="layui-input-block">
                                {volist name="res['img']" id="vo"}
                                <img src="{$vo}" style="width:100px;height:100px">
                                {/volist}
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">求助时间：</label>
                            <div class="layui-input-block">
                                <input type="text"value="{$res.course_time}" name="banner_title" lay-verify="required" placeholder="标题" class="layui-input ">
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">是否有求助对象：</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$res.course_type_name}" lay-verify="required"  class="layui-input" oninput="value=value.replace(/[^\d]/g,'')">
                            </div>
                        </div>

                        {if $res['course_type']==1}
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">老师账号：</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$res.user_phone}" lay-verify="required"  class="layui-input" oninput="value=value.replace(/[^\d]/g,'')">
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">老师昵称：</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$res.username}" lay-verify="required"  class="layui-input" oninput="value=value.replace(/[^\d]/g,'')">
                            </div>
                        </div>
                        {/if}
                        {if $res['course_status']!=1}
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">解答老师：</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$res['info']['username']}" lay-verify="required"  class="layui-input" oninput="value=value.replace(/[^\d]/g,'')">
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">解答时间：</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$res['info']['reply_time']}" lay-verify="required"  class="layui-input" oninput="value=value.replace(/[^\d]/g,'')">
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">求助图片：</label>
                            <div class="layui-input-block">
                                {volist name="res['info']['img']" id="vo"}
                                <img src="{$vo}" style="width:100px;height:100px">
                                {/volist}
                            </div>
                        </div>
                        {/if}
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <div class="layui-input-block">
                                <button class="layui-btn layui-btn-primary" onclick="history.go(-1)">关闭</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{include file="public/footer" /}


</body>
</html>
